﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmartSpace.Core;
using SmartSpace.Data;
using SmartSpace.Workflow;

namespace SmartSpace.Framework
{
    public class FrameworkFactory : ICoreFactory, IDataFactory, IWorkflowFactory
    {
        private string _connectionString;

        public FrameworkFactory()
        {
            _connectionString = "framework";
        }

        CoreContext ICoreFactory.Get()
        {
            return new CoreContext(new FrameworkDbContext());
        }

        DataContext IDataFactory.Get()
        {
            return new DataContext(new FrameworkDbContext());
        }

        WorkflowContext IWorkflowFactory.Get()
        {
            return new WorkflowContext(new FrameworkDbContext());
        }
    }
}
